#pragma once
#include<iostream>
#include <functional>

using task_t = std::function<void()>;

void Download()
{
    std::cout << "我是一个下载任务。。。" << std::endl;
}

class Task
{
public:
    Task()
    {}
    Task(int a,int b):_x(a) , _y(b)
    {}

    void Execute()
    {
        _result =  _x + _y;
    }
    int X() { return _x; }
    int Y() { return _y; }

    int Result()
    {
        return _result;
    }
    ~Task()
    {}
private:
    int _x;
    int _y;
    int _result;
};